﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Imagiality.MeshProcessing
{
    public class Scene
    {
        private IList<RootSceneObject> objects;
        private IDGenerator idGenerator;

        public Scene()
        {
            objects = new List<RootSceneObject>();
            idGenerator = new SimpleIDGenerator();
        }

        public void Add(RootSceneObject obj)
        {
            objects.Add(obj);
            obj.BindID(idGenerator);
        }

        public IList<RootSceneObject> Objects
        {
            get 
            {
                return objects;
            }
        }

    }
}
